package com.cssp.lof.dao;

import java.util.List;

import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;

import com.cssp.lof.model.FoundInfo;

public class FoundInfoDao extends SqlMapClientDaoSupport
	{
		@SuppressWarnings("unchecked")
		public List<FoundInfo> getAllFoundInfo()
			{
				return getSqlMapClientTemplate().queryForList("foundInfo.getAll");
			}

		public FoundInfo getFoundInfoById(String id)
			{
				return (FoundInfo) getSqlMapClientTemplate().queryForObject("foundInfo.getFoundInfoById", id);
			}

		public void addFoundInfo(FoundInfo foundInfo)
			{
				getSqlMapClientTemplate().insert("foundInfo.addFoundInfo", foundInfo);
			}

		public void updateFoundInfo(FoundInfo foundInfo)
			{
				getSqlMapClientTemplate().update("foundInfo.updateFoundInfo", foundInfo);
			}

		public void deleteFoundInfo(String id)
			{
				getSqlMapClientTemplate().delete("foundInfo.deleteFoundInfo", id);
			}
	}
